﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="getDealership.aspx.cs" MasterPageFile="~/Manager/SearchMP.master" Inherits="Agile_E.getDealership" %>

<asp:Content id="getDealership" ContentPlaceHolderID="MPsearchmain" runat="server">
<div>
<h1><asp:Label id="lbltitle" runat="server" Text="Dealership"></asp:Label></h1>
<br />
<table style="text-align:left">
<tr><td style="padding-right:10px">
<asp:Label id="lblname" runat="server" Text="Dealership Name:" Font-Bold="true"></asp:Label></td>
<td><asp:TextBox id="txtname" runat="server" ReadOnly="true" CssClass="Dealershiptxtbox" ></asp:TextBox>
<asp:RequiredFieldValidator ID="RFVname" ControlToValidate="txtname" Text="(Required)" runat="server"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td><asp:Label id="lblowner" runat="server" Text="Owner:" Font-Bold="true"></asp:Label></td>
<td><asp:TextBox id="txtowner" runat="server" ReadOnly="true" CssClass="Dealershiptxtbox"  ></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" ControlToValidate="txtowner" Text="(Required)" runat="server"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td><asp:Label id="lblphone" runat="server" Text="Contact Phone:" Font-Bold="true"></asp:Label></td>
<td><asp:TextBox id="txtphone" runat="server" ReadOnly="true" CssClass="Dealershiptxtbox" ></asp:TextBox></td>
</tr>
<tr>
<td><asp:Label id="lbladdr" runat="server" Text="Address:" Font-Bold="true"></asp:Label></td>
<td><asp:TextBox id="txtstreet" runat="server" Width="287px" ReadOnly="true" 
        CssClass="Dealershiptxtbox" ></asp:TextBox></td>
</tr>
<tr>
<td></td>
<td><asp:Label ID="lblcity" runat="server" Text="City: " style="font-weight: 700"></asp:Label>&nbsp; 
<asp:TextBox ID="txtcity" runat="server" ReadOnly="true" CssClass="Dealershiptxtbox"></asp:TextBox>&nbsp;&nbsp;&nbsp;&nbsp;
<asp:Label ID="lblstate" runat="server" Text="State: " style="font-weight: 700"></asp:Label>&nbsp;
<asp:TextBox ID="txtstate" runat="server" MaxLength="2" Width="31px" 
        ReadOnly="true" CssClass="Dealershiptxtbox"></asp:TextBox></td></tr>
<tr><td></td>
<td><asp:Label ID="lblzip" runat="server" Text="Zip Code: " 
        style="font-weight: 700"></asp:Label>&nbsp;
<asp:TextBox ID="txtZip" runat="server" MaxLength="5" Width="108px" ReadOnly="true" CssClass="Dealershiptxtbox"></asp:TextBox>
</td></tr>
</table>
<br /><br />
<table>
<tr><td align="left"><asp:Label ID="lblServices" Text="Services Available:" runat="server" Font-Bold="true"></asp:Label></td></tr>
<tr><td>
<asp:TextBox ID="txtServices" runat="server" TextMode="MultiLine"
 Width="500px" Height="200px" Wrap="true" ReadOnly="true" CssClass="Dealershiptxtbox"></asp:TextBox></td></tr>
<tr><td></td></tr>
<tr><td>
<asp:Button ID="btnEdit" runat="server" Text="Edit" Width="55px" 
        onclick="btnEdit_Click" />
<asp:Button id="btnSave" runat="server" Text="Save" Width="55px" 
        onclick="btnSave_Click" Visible="false" OnClientClick="return confirm('Save changes?');" />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<asp:Button id="btnDelete" runat="server" Text="Delete" Width="55px" 
        onclick="btnDelete_Click" OnClientClick="return confirm('Are you sure you want to delete this dealership?');" />
</td></tr>
</table>
<br />
</div>
</asp:Content>